﻿@{
    ViewBag.Title = "Index";
}
<style>
.key{color:Red;}
.value{color:Green;}
</style>
@{
    System.Text.StringBuilder sb = new System.Text.StringBuilder();
    string[] arrs = Request.ServerVariables.AllKeys;
    foreach (var item in arrs)
    {
        sb.Append(string.Format("<p><span class='key'>{0}</span>=<span class='value'>{1}</span></p>", item, Request.ServerVariables[item]));

    }
}
@Html.Raw(sb.ToString()); 